﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Text;
using Common.Logging;

namespace Crawler.Data
{
    public partial class ReportDataContext
    {

        public ReportDataContext()
            : base(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString, new AttributeMappingSource())
        {
            LogManager.GetCurrentClassLogger().Debug("ReportDataContext constracted");
            if(!DatabaseExists())CreateDatabase();
        }
    }
}
